@import './reset';

.container {
    // 主题颜色
    $themeColor: #1b2a65;

    // 居中盒子--将子元素水平居中对齐
    %boxCenter {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header {
        background-color: #fff;
        @extend %boxCenter;

        // 导入导航栏样式
        @import './nav';

        // 横幅大图
        .banner {
            max-width: 100%;
            position: relative;

            img {
                width: 100%;
                display: block;
            }

            %i {
                position: absolute;
                font-size: 80px;
                top: 50%;
                transform: translateY(-50%);
                color: rgba(200, 200, 200, 0.7)
            }

            i:first-of-type {
                @extend %i;
                left: 20px;
            }

            i:last-of-type {
                @extend %i;
                right: 20px;
            }
        }
    }

    main {
        section {
            // 将所有 section 容器内的盒子（content）水平居中对齐
            @extend %boxCenter;

            background-color: #fff;

            // 所有的 content 部分
            &>div {
                width: 1200px;
                // border: 1px solid red;
            }

            // 第一个section容器
            &:first-child {
                height: 290px;
                background-color: #ebebeb;

                .content_1 {
                    margin-top: 30px;

                    ul {
                        display: flex;
                        justify-content: space-between;

                        li {
                            width: 260px;
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            // background-color: aquamarine;

                            div {
                                img {
                                    height: 50px;
                                }
                            }

                            // p标签文本样式
                            p {
                                font-size: 14px;

                                &:first-of-type {
                                    color: #333333;
                                    margin: 10px 0 8px;
                                }

                                &:nth-of-type(2) {
                                    color: $themeColor;
                                    margin-bottom: 20px;
                                }

                                &:last-of-type {
                                    color: #666666;
                                    line-height: 20px;
                                    text-align: center;
                                }
                            }
                        }
                    }
                }
            }

            // 内容标题统一样式
            .content_title {
                margin-bottom: 70px;
                text-align: center;
                &>p{
                    color: #666666;

                }
                .titleBox {
                    width: 470px;
                    margin: 75px auto 30px;
                    position: relative;
                    display: flex;

                    div {
                        height: 70px;
                        margin: 0 auto;
                        text-align: center;
                        position: inherit;
                        z-index: 3;
                        display: flex;
                        align-items: center;
                        background-color: #fff;
                        border: 5px solid #b7b7b7;

                        p:first-child {
                            color: $themeColor;
                            // background-color: #fff;
                            font-size: 41px;
                            position: absolute;
                            width: 100%;
                            z-index: 5;
                            span{
                                color: #333333;
                            }
                        }

                        p:last-child {
                            width: 100%;
                            position: inherit;
                            font-size: 29px;
                            z-index: 4;
                            opacity: 0.1;
                            margin: 0 20px;
                            // background-color: red;
                        }


                        @mixin mask {
                            content: '';
                            width: 16px;
                            height: 16px;
                            background-color: #fff;
                            position: absolute;
                            top: 50%;
                            transform: translateY(-50%);
                        }

                        &::before {
                            @include mask;
                            left: -9px;
                        }

                        &::after {
                            @include mask;
                            right: -9px;
                        }
                    }

                    hr {
                        border: none;
                        width: 100%;
                        height: 5px;
                        background-color: #b7b7b7;
                        position: absolute;
                        top: 50%;
                        transform: translateY(-50%);
                    }

                }
            }

            // 第三个section容器
            &:nth-child(3) {
                .content_3 {
                    display: flex;
                    align-items: center;

                    .boxLeft {
                        img {
                            display: block;
                            height: 440px;
                        }
                    }

                    .boxRight {
                        width: 345px;
                        height: 360px;
                        line-height: 20px;
                        margin-left: 135px;
                        // border: 1px solid red;

                        .t_Box {
                            color: $themeColor;
                            margin-bottom: 50px;

                            p:first-child {
                                font-size: 23px;
                                margin-bottom: 12px;
                            }

                            p:last-child {
                                font-size: 17px;
                            }
                        }

                        .b_Box {
                            p {
                                color: #333333;
                                font-size: 25px;
                                font-weight: bold;
                                margin-bottom: 10px;
                            }
                        }

                        // 短横线
                        hr {
                            width: 50px;
                            height: 4px;
                            border: none;
                            background-color: #999999;
                            margin: 65px 0 90px;
                        }

                        // 底部按钮
                        .btn {
                            width: 140px;
                            height: 45px;
                            text-align: center;
                            line-height: 45px;
                            font-size: 14px;
                            background-color: $themeColor;
                            color: #fff;
                            border: none;
                            clip-path: polygon(12% 0,88% 0,100% 50%,88% 100%,12% 100%,0 50%);

                            // 混合器--制作六边形
                            /* @mixin san {
                                content: '';
                                position: absolute;
                                width: 0px;
                                height: 0px;
                                border: 22.5px solid transparent;
                            }

                            &::before {
                                @include san;
                                left: -40px;
                                border-right: 19px solid $themeColor;
                            }

                            &::after {
                                @include san;
                                right: -40px;
                                border-left: 19px solid $themeColor;
                            } */
                        }
                    }
                }
            }

            // 第五个section容器
            &:nth-child(5) {
                background-color: $themeColor;

                .content_5 {
                    margin: 10px 0;

                    .iconGroup {
                        width: 100%;
                        display: flex;
                        flex-wrap: wrap;
                        justify-content: space-between;
                        align-content: flex-start;
                        padding: 50px 0;
                        // padding-left: 70px;

                        li {
                            // border: 1px solid red;
                            box-sizing: border-box;
                            width: 33.3%;
                            margin: 55px 0;
                            display: flex;
                            align-items: center;
                            flex-direction: column;
                            color: white;

                            div {
                                width: 115px;
                                height: 115px;
                                border: 1px solid #fff;
                                border-radius: 50%;
                                margin-bottom: 35px;
                                position: relative;

                                i {
                                    position: absolute;
                                    top: 50%;
                                    left: 50%;
                                    transform: translate(-50%, -50%);
                                    font-size: 70px;
                                }
                            }
                        }
                    }
                }
            }

            // 第七个section容器
            &:last-child {
                .content_7 {
                    ul {
                        display: flex;
                        justify-content: space-between;

                        li {
                            width: 305px;
                            text-align: center;

                            .bg {
                                width: 100%;
                                height: 285px;
                                background-color: #e8e8e8;
                                position: relative;

                                img {
                                    display: block;
                                    margin: 0 auto;
                                    height: 100%;
                                }

                                span {
                                    padding: 4px 16px;
                                    color: #fff;
                                    background-color: $themeColor;
                                    position: absolute;
                                    bottom: 0;
                                    right: 17px;
                                }
                            }

                            p {
                                width: 270px;
                                margin: 45px auto 70px;
                            }
                        }
                    }
                }
            }
        }
    }

    @import './footer';

    // 六边形
    // .box{
    //     width: 150px;
    //     height: 50px;
    //     background-color: greenyellow;
    //     margin: 50px;

    //     clip-path: polygon(12% 0,88% 0,100% 50%,88% 100%,12% 100%,0 50%);
    // }
}